package com.bite.demo.aspect;


import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Order(3)
@Slf4j
//@Component
@Aspect
public class MyAspect3 {
    @Before("com.bite.demo.aspect.MyAspectDemo.pc()")
    public void before(JoinPoint joinPoint) {
        log.info(joinPoint.getSignature().toShortString() + " before");
    }

    @After("com.bite.demo.aspect.MyAspectDemo.pc()")
    public void after(JoinPoint joinPoint) {
        log.info(joinPoint.getSignature().toShortString() + " after");
    }
}
